import {createRouter,createWebHistory} from 'vue-router'
import layoutVue from "@/views/layout.vue"
import userLoginVue from "@/views/userLogin.vue"
import pushProductVue from "@/views/pushProduct.vue"
import AITalk from "@/views/AITalk.vue";
import RequiredGoods from "@/views/requiredGoods.vue";
import PersonalCenter from "@/views/PersonalCenter.vue";
import MessageCenter from "@/views/MessageCenter.vue"
import indexVue from '@/views/index.vue'
import MyPushCenter from "@/views/MyPushCenter.vue";
import PushRequiredGoods from "@/views/PushRequiredGoods.vue";
const routes = [
    {path:'/', component:indexVue,meta:{title:'首页'}},
    {path:'/login', component:userLoginVue, meta:{title:'登录'}},
    {path:'/pushGoods', component:pushProductVue,meta:{title:'发布商品'}},
    {path:'/AITalk', component:AITalk,meta:{title:'AI助手'}},
    {path:'/requiredGoods', component:RequiredGoods,meta:{title:'求购广场'}},
    {path:'/personalCenter', component:PersonalCenter,meta:{title:'个人中心'}},
    {path:'/messageCenter', component:MessageCenter,meta:{title:'消息中心'}},
    {path:'/layout', component: layoutVue,meta:{title:'所有商品'}},
    {path:'/myPushCenter', component: MyPushCenter,meta:{title:'我的发布'}},
    {path:'/pushRequiredGoods', component: PushRequiredGoods,meta:{title:'发布求购'}}
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router